package czk.jvm.lecture.classloader;

public class MyTest8 {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Class<?> clazz=Class.forName("java.lang.String");
        //启动类加载器，返回null,由c++编写并不是java
        ClassLoader classLoader = clazz.getClassLoader();
        System.out.println(classLoader);
        Class<?> aClass = Class.forName("czk.jvm.lecture.classloader.C");
        System.out.println(aClass.newInstance());
        System.out.println(aClass.getClassLoader());
    }
}
class  C{

}
